package com.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公海收回规则表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_crm_customer_pool_rule")
@ApiModel(value = "CrmCustomerPoolRule对象", description = "公海收回规则表")
public class CrmCustomerPoolRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("收回规则id")
    @TableId(value = "rule_id", type = IdType.AUTO)
    private Integer ruleId;

    @ApiModelProperty("公海id")
    @TableField("pool_id")
    private Integer poolId;

    @ApiModelProperty("收回规则判断类型 1跟进记录 2商机 3成交状态")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("已成交客户是否进入公海 0不进入 1进入")
    @TableField("deal_handle")
    private Integer dealHandle;

    @ApiModelProperty("有商机客户是否进入公海 0不进入 1进入")
    @TableField("business_handle")
    private Integer businessHandle;

    @ApiModelProperty("客户级别设置 1全部 2根据级别分别设置")
    @TableField("customer_level_setting")
    private Integer customerLevelSetting;

    @ApiModelProperty("客户级别 1全部")
    @TableField("level")
    private String level;

    @ApiModelProperty("公海规则限制天数")
    @TableField("limit_day")
    private Integer limitDay;


}
